﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebForms.Doctor.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        My Patients</h1>
    <asp:GridView ID="gvCitizens" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="CitizenId" DataNavigateUrlFormatString="/Doctor/Patient.aspx?citizenId={0}"
                DataTextField="Name" HeaderText="Name" />
            <asp:BoundField DataField="SocialSecurity" HeaderText="Social Security" />
            <asp:BoundField DataField="TimeCreated" HeaderText="Time Created" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" />
            <asp:BoundField DataField="Email" HeaderText="Email" />
        </Columns>
    </asp:GridView>
    <h2>
        Patients which You have been granted access to view</h2>
    <asp:GridView ID="CitGrantedTo" runat="server" AutoGenerateColumns="false">
        <Columns>
            <%--<asp:HyperLinkField DataNavigateUrlFields="CitizenId" DataNavigateUrlFormatString="/Doctor/Patient.aspx?citizenId={0}"
                DataTextField="Name" HeaderText="Name" />--%>
<%--            <asp:BoundField DataField="SocialSecurity" HeaderText="Social Security" />
            <asp:BoundField DataField="TimeCreated" HeaderText="Time Created" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" />
            <asp:BoundField DataField="Email" HeaderText="Email" />--%>
            <asp:HyperLinkField DataNavigateUrlFields="CitizenId" DataNavigateUrlFormatString="/Doctor/Patient.aspx?citizenId={0}"
                DataTextField="CitizenId" HeaderText="CitizenId" />
            <asp:BoundField DataField="Expires" HeaderText="Expiry date" />
            
        </Columns>
    </asp:GridView>
</asp:Content>
